package org.example.aienglishapp.mapper.word;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.aienglishapp.entity.word.ErrorWord;

import java.util.List;

@Mapper
public interface ErrorWordsMapper {

    List<ErrorWord> getErrorWords(Long userId);

    void addErrorWord(ErrorWord errorWord);

    int deleteErrorWord(@Param("userId") Long userId, @Param("word") String word);
}